Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompile Code 8094d28 #373

Merged
merged 3 commits into from
Mar 26, 2025
Merged

Conversation

DizzyEggg
Copy link
Contributor

Credits to @SethBarberee for his scratches.

YET another rng implementation, just how many are there? LOL
Also wikipedia link for reading https://en.wikipedia.org/wiki/Mersenne_Twister if anyone's curious about this one.

#ifndef GUARD_RANDOM_MERSENNE_TWISTER_H
#define GUARD_RANDOM_MERSENNE_TWISTER_H

void MersenneTwister_InitializeState(u32 seed);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Names might be too verbose. Consider mtsrand and mtrand.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what do others think? I can rename these functions to mtsrand and mtrand, if that's the only thing blocking the PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way works for me. I don't mind long or short names as long as they're descriptive (which both options are here).

@AnonymousRandomPerson
Copy link
Collaborator

Gonna merge this for now. We can rename later if desired.

@AnonymousRandomPerson AnonymousRandomPerson merged commit 5bfdc16 into pret:master Mar 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants